﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="TimKiemHocVien.ascx.cs" Inherits="admin_TimKiemHocVien" %>
<%@ Register TagPrefix="ComponentArt" Namespace="ComponentArt.Web.UI" Assembly="ComponentArt.Web.UI" %>
 <table border="0" cellpadding="0" cellspacing="0" style="width:100%;">
    <tr>
        <td style="background-color:White;" valign="top" >
            <table cellspacing="0" cellpadding="0" width="100%" >
                <tr>
		            <td colspan="6" align="left" class="HeadingTree" >Danh sách ứng viên</td>
	            </tr>
	            <tr>
                    <td colspan="6" align="left">
                        <asp:validationsummary id="vdsHocVien" CssClass="cssManField" runat="server" Font-Bold="True" BorderWidth="0" />
                        <asp:label id="lblMess" CssClass="cssManField" runat="server" />
                    </td>
                </tr>
	            <tr>
		            <td align="left" valign="top" style="height:670px;">
		                <table cellspacing="0" cellpadding="1" width="100%" border="0">
	                        <tr>
	                            <td align="center" >
	                                <asp:Panel ID="pnTimKiem" runat="server" GroupingText="Thông tin tìm kiếm ">
	                                    <table cellspacing="0" cellpadding="1" width="100%" border="0">
	                                        <tr>
		                                        <td align="right" style="width:10%;">
			                                        <asp:Label ID="lblDienThoai" runat="server" CssClass="cssLabel" 
                                                        Text="Đ&lt;U&gt;i&lt;/U&gt;ện thoại" />
		                                        </td>
		                                        <td style="width:30%;" align="left">
		                                            <asp:TextBox ID="txtDienThoai" runat="server" accessKey="i" MaxLength="20" 
                                                        Width="98%" />
		                                        </td>
		                                        <td style="width:15%;" align="right">
			                                        <asp:label id="lblTenHocVien" CssClass="cssLabel" runat="server"  Text="<U>T</U>ên học viên:" />
		                                        </td>
		                                        <td style="width:30%;" align="left">
			                                        <asp:textbox id="txtTenHocVien" accessKey="t"    runat="server" MaxLength="256" Width="96%" />
		                                        </td>
		                                        <td align="left" style="width:15%;" >
		                                            <asp:button id="btnSearch" accessKey="s" CssClass="cssButton" runat="server"  
                                                        Width="98px" Text="Lọc(s)" onclick="btnSearch_Click" />
		                                         </td>
	                                        </tr>
	                                    </table>
	                                </asp:Panel>
	                            </td>
	                        </tr>
	                        <tr>
	                            <td align="center" >
		                            <asp:GridView id="grvHocVien" runat="server" Width="100%" CellPadding="0" CellSpacing="0" 
		                                AutoGenerateColumns="False" AllowPaging="true" 
		                                HeaderStyle-CssClass="cssGridHeader" EditRowStyle-CssClass="cssGridEdit" RowStyle-CssClass="cssGridCell" 
		                                AlternatingRowStyle-CssClass="cssGridAlterCell"  
                                        PagerStyle-CssClass="cssGridPager" SelectedRowStyle-CssClass="cssSelectedRow"
				                        DataKeyNames="ID" PageSize="16" PagerStyle-HorizontalAlign="Center"
				                        OnRowDataBound="grvHocVien_RowDataBound"
                                        onpageindexchanging="grvHocVien_PageIndexChanging" AllowSorting="True" 
                                        onsorting="grvHocVien_Sorting">
				                        <PagerSettings Position="TopAndBottom" />
				                        <Columns>
					                        <asp:TemplateField Visible="False">
						                        <ItemTemplate>
							                        <asp:Label id="HocVienID" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.ID") %>' />
						                        </ItemTemplate>
					                        </asp:TemplateField>
					                        <asp:TemplateField Visible="True">
						                        <ItemTemplate>
							                        <asp:Label id="LevelID" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.LevelID") %>' />
						                        </ItemTemplate>
					                        </asp:TemplateField>
					                        <asp:BoundField DataField="Seq" SortExpression="Seq" HeaderText="TT" 
                                                ItemStyle-Width="4%" HeaderStyle-ForeColor="White" 
                                                ItemStyle-HorizontalAlign="Center" >
                                            </asp:BoundField>
					                        <asp:TemplateField HeaderText="Mã ứng viên" SortExpression="MaHocVien" ControlStyle-Font-Underline="false"  HeaderStyle-ForeColor="White" ItemStyle-HorizontalAlign="Left">
					                        <ItemStyle Width="10%"/>
					                            <ItemTemplate>
							                        <asp:Label id="lblMaHocVienGV" CssClass="cssGridLink" Target="_blank" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.MaHocVien") %>' />
						                        </ItemTemplate>						
					                        </asp:TemplateField>	
					                        <asp:TemplateField HeaderText="Họ tên" SortExpression="HoTen" ControlStyle-Font-Underline="false"  HeaderStyle-ForeColor="White" ItemStyle-HorizontalAlign="Left">
					                          <ItemStyle Width="17%"/>
					                            <ItemTemplate>
							                        <asp:Label id="lblHoTenGV" CssClass="cssLabel" Target="_blank" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.HoTen") %>' />
						                        </ItemTemplate>						
					                        </asp:TemplateField>
					                        <asp:BoundField DataField="DienThoai" SortExpression="DienThoai" 
                                                HeaderText="Điện thoại" HeaderStyle-ForeColor="White" ItemStyle-Width="10%" 
                                                ItemStyle-HorizontalAlign="Center" >
                                            </asp:BoundField>
					                         <asp:TemplateField HeaderText="Email" SortExpression="Email" ItemStyle-Width="12%" ControlStyle-Font-Underline="false"  HeaderStyle-ForeColor="White" ItemStyle-HorizontalAlign="Left">
					                            <ItemTemplate>
							                        <asp:Label id="lblEmailGV" CssClass="cssLabel" Target="_blank" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Email") %>' />
						                        </ItemTemplate>						
					                        </asp:TemplateField>
					                        <asp:TemplateField HeaderText="Gọi gần nhất" SortExpression="NgayGoi" ControlStyle-Font-Underline="false" ItemStyle-Width="12%" HeaderStyle-ForeColor="White" ItemStyle-HorizontalAlign="Center">
					                            <ItemTemplate>
							                        <asp:Label id="lblNgayGoiGanNhatGV" CssClass="cssLabel" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.NgayGoi") %>' />
						                        </ItemTemplate>		
					                        </asp:TemplateField>						
					                        <asp:BoundField DataField="TenTrangThaiGoi" SortExpression="TenTrangThaiGoi" 
                                                HeaderStyle-ForeColor="White" HeaderText="Trạng thái" ItemStyle-Width="10%" 
                                                ItemStyle-HorizontalAlign="Center" >							
                                            </asp:BoundField>
					                          <asp:TemplateField HeaderText="Nội dung"  ControlStyle-Font-Underline="false" ItemStyle-Width="15%" HeaderStyle-ForeColor="White" ItemStyle-HorizontalAlign="Center">
					                            <ItemTemplate>
							                        <asp:Label id="lblNoidungGV" CssClass="cssLabel" runat="server" />
						                        </ItemTemplate>	
					                        </asp:TemplateField>	
					                        <asp:TemplateField HeaderText="Chức năng" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="12%" >
						                        <ItemTemplate>
						                            <asp:HyperLink id="hplAddGV" CssClass="cssHyperLinkIcon" Target="_blank" runat="server" ImageUrl="~/images/Button/Insert.gif" ToolTip="Thêm sự kiện" />
						                        </ItemTemplate>
					                        </asp:TemplateField>					
				                        </Columns>
	                                   </asp:GridView>
		                        </td>
	                        </tr>	
                        </table>
		            </td>
	            </tr>
            </table>
        </td>    
    </tr>
</table>

